import { createRouter,createWebHistory } from "vue-router";

const routes = [
    {path: '/',name:'Index',titth:'首页',component:()=>import("@/views/user/index.vue")},
    {path: '/shangcheng',name:'shangcheng',titth:'商城',component:()=>import("@/views/mall/mall.vue")},
    {path: '/person',name:'person',titth:'个人页面',component:()=>import("@/views/person.vue")},
    {path: '/login',name:'login',titth:'登录',component:()=>import("@/views/login/login.vue")},
    {path: "/user/List",name:"UerList",titth:"用户列表",component:()=>import("@/views/user/list.vue")},
    {path: "/user/:id",name:"UerDetail",component:()=>import("@/views/user/Detail.vue")},
]

const router = createRouter(
    {
        history:createWebHistory(),
        routes
    }
)

export default router